#!/usr/bin/env python

import sys

def check_arg():
    if (sys.argv.__len__() != 3):
        print "usage:" + sys.argv[0] + " source_file dest_file"
        exit()


check_arg()

origfile = open(sys.argv[1], 'r')
reached = False
size_count = 0

while (not reached):
    if (origfile.read(1) == '\n'):
        reached = True
        
writeto = open(sys.argv[2], 'w')
while (True):
    a_byte = origfile.read(1)
    if(a_byte == ""):
        break
    else:
        writeto.write(a_byte)

print "Done"
